-- GENERATED SPELL FOR [Keetar] --


function spell0_13079(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13079', 506, 1)
end

function spell1_13079(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13079', 615, 1)
end

function spell2_13079(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_13079', 665, 1)
end

function spell3_13079(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(17207,pUnit)
pUnit:RegisterEvent('Sorts_13079', 2000, 1)
end

function Sorts_13079(pUnit, Event)
local choix_sorts_13079 = math.random(0, 3)
if choix_sorts_13079 == 0 then
pUnit:RegisterEvent('spell0_13079', 1, 1)
end
if choix_sorts_13079 == 1 then
pUnit:RegisterEvent('spell1_13079', 1, 1)
end
if choix_sorts_13079 == 2 then
pUnit:RegisterEvent('spell2_13079', 1, 1)
end
if choix_sorts_13079 == 3 then
pUnit:RegisterEvent('spell3_13079', 1, 1)
end
end

function mob13079_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13079', math.random(1500, 3000), 1)
end

function mob13079_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13079_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13079_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13079, 1, 'mob13079_Action')
RegisterUnitEvent(13079, 2, 'mob13079_Leave')
RegisterUnitEvent(13079, 3, 'mob13079_Kill')
RegisterUnitEvent(13079, 4, 'mob13079_Die')
